<?php
/**
* @author: Nguyen Thanh Tung
* @date: Monday, January 27, 2014
*/
if( !isset($AppUI) /*|| 
	(isset($AppUI->id) && !in_array($AppUI->type, array(ROLE_ROOT, ROLE_ADMINISTRATOR)))*/
) {
	redirect(HOST_BACKEND);
}
$this->load->model('user_model','user');
$intUserId = $this->input->get('userid',0);
$row = $this->user->get($intUserId);
$this->smarty->assign('birthday',CI_Function::datevn($row['birthdate']));
$this->smarty->assign('row',$row);

$this->smarty->display('user/detail.tpl');